<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    protected $dates = ['send_at'];

    protected $fillable = ['key', 'user_id', 'value', 'send_at', 'status', 'form_id'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function wechatUser()
    {
        return $this->belongsTo(WechatUser::class, 'user_id', 'user_id');
    }
}
